#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <opencv2/opencv.hpp>
#include <opencv/highgui.h>
#include <opencv/cv.h>

namespace Ui {
class MainWindow;
}
using namespace cv;

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
private slots:
    void on_pb_start_clicked();
    void stop_running();
    void on_pb_stop_clicked();

private:
    Ui::MainWindow *ui;
    void msleep(int msecond);
    void opticFlow();
    bool running;
    Mat pMat,nMat,dMat;
};

#endif // MAINWINDOW_H
